<?php 
namespace User\Controller;
use Common\Controller\BaseController;
class CommonController extends BaseController{
	
	function _initialize() {
		//登录拦截
		if(!$_SESSION['loginUser'] && !I('uid')){
			redirect('/user/login'); //拦截到登录
			exit();
		}
		parent::_initialize();
		
	}
}
?>